import xbmc, xbmcgui, xbmcplugin, xbmcaddon
import os, urllib2
import re, htmlentitydefs, time, unicodedata, sys

# Get a search query from keyboard
def readKbd():
  kb = xbmc.Keyboard("", "Enter an Artist or Track", False)
  kb.doModal()
  if (kb.isConfirmed() and len(kb.getText()) > 2):
    return kb.getText() 